<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人中心</title>
<link type="text/css" rel="stylesheet" href="{$css_path}/css.css"/>
<link type="text/css" rel="stylesheet" href="{$css_path}/global.css"/>
<link rel="stylesheet" href="{$css_path}/powerFloat.css" type="text/css" />
</head>
<body>
{include file="header.html"}
<div id="wrapper">
  <div id="content">
    <div id="con_le"> {include file="user_nav.html"} 
    </div>
    <!--con_le over-->
    <div id="con_box">
      <div class="Current">{$position}</div>
      <div class="con_top"> {include file="user_common_detail.html"}
        <div class="clear"></div>
      </div>
      <div id="user_content"> {include file="message.html"}
        <div id="message_action"> <a href="{$site_url}user/message/receive_new">未读</a> <a href="{$site_url}user/message/receive_readed" >已读</a> <a href="{$site_url}user/message/system" >系统</a> <a href="{$site_url}user/message/send_list">已发送</a> <a href="{$site_url}user/message/send">发送信息</a> </div>
        
        <form id="myform" name="myform" action="{$site_url}user/message/send" method="post" style="float:left; width:700px;" enctype="MULTIPART/FORM-DATA" >
          <table cellspacing='0' cellpadding='0'>
            <tr id='tr_user'>
              <th >收件人：</th>
              <td><input type='text' name='to_user' id='to_user'  class='text samll'/></td>
            </tr>
            <tr id='tr_user'>
              <th >标题：</th>
              <td><input type='text' name='title' id='title'  class='text samll' style='width:400px;'/></td>
            </tr>
            <tr id='tr_user'>
              <th >详细介绍：</th>
              <td><textarea name="content" id="content" ></textarea></td>
            </tr>
             <tr align="center">
                <td colspan="2" style="text-align:center"><input type="submit" class="button-blue" value="提 交"></td>
              </tr>
          </table>
        </form>
          <div class="clear"></div>
      </div>
    </div>
    <!--con_box over-->
    <div class="clear"></div>
  </div>
  <!--content over--> 
</div>
{include file="footer.html"}
{include file="hidden_div.html"} 
<script type="text/javascript" src="{$js_path}/jquery.js"></script> 
<script type="text/javascript" src="{$js_path}/jquery-powerFloat.js"></script> 
<script type="text/javascript" src="{$js_path}/jquery.pngfix.js"></script> 
<script type="text/javascript" src="{$js_path}/scrolltopcontrol.js"></script> 
<script type="text/javascript" src="{$js_path}/myfloat.js"></script> 
<script type="text/javascript" src="{$js_path}/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="{$js_path}/jquery.validate.js"></script> 
<script type="text/javascript" src="{$js_path}/message.js"></script> 
<script type="text/javascript" src="{$js_path}/user.js"></script> 
<script>
$(function(){
	
	//发送和接受的当前状态
	var str = window.location.href;
	var current_action = '/'+str.replace('http://www.jsw.com/','');
	$('#message_action a').each(function(){
		if($(this).attr('href') == current_action){
			  $(this).attr('class','current');
		}
	});
	
	
	
	 $("#myform").validate({
		  rules: {
			 to_user:"required",
			 title:"required",
			 content:"required"
		  },
		  messages: {
			to_user:'请正确填写收件人',
			title:'请正确标题',
			content:'请正确填写内容'
		  }
	});
})

</script>
</body>
</html>
